//简单类型数组定义
// 一般数组定义
const arr = [1, 2, 3];
// 数值类型数组
const numArr: number[] = [4, 5, 6];
// 字符串类型数组
const strArr: string[] = ["1", "2", "3"];
// undefined 类型
const undefinedArr: undefined[] = [undefined, undefined];
// 混合类型数组  类型使用括号包裹，并且用竖线|分隔
const mixArr: (number | string)[] = [1, 2, "3"];
// 复杂类型数组定义
// 包含对象的数组
const xiaoJieJies: { name: string; age: Number }[] = [
  { name: "刘英", age: 18 },
  { name: "谢大脚", age: 28 },
];
type lady = { name: string; age: Number };
const peoples: lady[] = [
  { name: "chj", age: 20 },
  { name: "darkchild", age: 25 },
];

class Madam {
  name: string;
  age: number;
}

const belles: Madam[] = [
  { name: "刘英", age: 18 },
  { name: "谢大脚", age: 28 },
];
